/**
 * API 统一管理入口
 */

import { createArticleApi } from './methods/article.api'
import { config, CURRENT_ENV, CURRENT_API_BACKENDS } from '@/config/axios.config'
import { createAllAxiosInstances } from '@/utils/request/axios-instance'

// 获取当前环境的所有后端实例
const instances = createAllAxiosInstances(config[CURRENT_ENV])
/** 博客 API 对象 */
export const blogApis = {
  article: createArticleApi(instances[CURRENT_API_BACKENDS.article]),
}
